package com.mall.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.UserInfo;
import com.mall.book.mappers.UserInfoMapper;
import com.mall.book.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * Created by Dizziness on 2022/3/22 10:21
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public boolean saveBatch(Collection<UserInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<UserInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<UserInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(UserInfo entity) {
        return false;
    }

    @Override
    public UserInfo getOne(Wrapper<UserInfo> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<UserInfo> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<UserInfo> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<UserInfo> getBaseMapper() {
        return userInfoMapper;
    }

    @Override
    public Class<UserInfo> getEntityClass() {
        return UserInfo.class;
    }

    @Override
    public List<UserInfo> getStaffs(Integer userIdentity) {
        return userInfoMapper.selectStaffs(userIdentity);
    }

    @Override
    public int allowLogin(String deleted_user) {
        return userInfoMapper.allowLogin(deleted_user);
    }

    @Override
    public UserInfo getByIdEvenDeleted(String user_accound) {
        return userInfoMapper.selectByIdEvenDeleted(user_accound);
    }
}
